{% extends "index/index.html" %}

{% block content %}
<h1>Wachtag</h1>
<p>Gestartet am: {{ Wachtag.dateStarted }}</p>
<p>Teilnehmer: {{ Teilnehmer }}</p> <!--Button with link to accounts-->
<form method="post" action="{% url 'crew:endWachtag' %}">
    {% csrf_token %}
    <button type="button submit" class="btn btn-danger">Wachtag beenden</button>
</form>
{% if error_message %}
    <br>
    <div class="alert alert-danger" role="alert">
        {{ error_message }}
    </div>
{% endif %}
{% endblock %}
